package com.my.bo.impl;

import java.math.BigInteger;
import java.util.List;

import com.my.bean.Address;
import com.my.bo.AddressBo;

public class AddressBoImpl extends BaseBo implements AddressBo {

	/***************************************** address ***************************************************************************/

	@Override
	public boolean editAddress(Address address) throws Exception {
		return addressdao.editAddress(address);
	}

	@Override
	public Address getAddressById(Class<Address> c, Integer id)
			throws Exception {
		return addressdao.getAddressById(c, id);
	}

	@Override
	public boolean addAddress(Address address) throws Exception {
		return addressdao.addAddress(address);
	}

	@Override
	public BigInteger getTotalAddressRecords() throws Exception {
		return addressdao.getTotalAddressRecords();
	}

	@Override
	public List<Address> getAllAddressByPage(int pageindex, int pagesize)
			throws Exception {
		return addressdao.getAllAddressByPage(pageindex, pagesize);
	}

	@Override
	public BigInteger searchTotalAddressRecords(Address address)
			throws Exception {
		return addressdao.searchTotalAddressRecords(address);
	}

	@Override
	public List<Address> searchAddressByPage(int pageindex, int pagesize,
			Address address) throws Exception {
		return addressdao.searchAddressByPage(pageindex, pagesize, address);
	}

	@Override
	public boolean removeAddress(Integer id) throws Exception {
		return addressdao.removeAddress(id);
	}

	@Override
	public boolean isExist(String name) {
		return addressdao.isExist(name);
	}

}
